import request from '@/utils/request'
export function parkingRuleListAPI(obj) {
  return request({
    url: '/parking/rule/list',
    method: 'GET',
    params: obj
  })
}
export function addParkingRuleAPI(obj) {
  return request({
    url: '/parking/rule',
    method: 'POST',
    data: obj
  })
}
export function delParkingRuleAPI(id) {
  return request({
    url: '/parking/rule/' + id,
    method: 'DELETE'

  })
}
export function editParkingRuleAPI(id) {
  return request({
    url: '/parking/rule/' + id,
    method: 'GET'
  })
}
export function editRuleAPI(obj) {
  return request({
    url: '/parking/rule/',
    method: 'PUT',
    data: obj
  })
}
